import { Login, setCode } from './login'

import { getUserProfile, getUserInfo } from './my'
import {
  getUserChannels,
  getArticles,
  getAllChannels,
  addUserChannel,
  deleteUserChannel
} from './home'
import { getSuggestions, getSearch } from './search'
import {
  getArticleById,
  addFollow,
  deleteFollow,
  addCollect,
  deleteCollect,
  addLike,
  deleteLike,
  getComments,
  addCommentLike,
  deleteCommentLike,
  addComment
} from './article'

import { updateUser, updateUserAvatar } from './profile'

export const LoginAPI = Login
export const setCodeAPI = setCode
export const getUserInfoAPI = getUserInfo
export const getUserProfileAPI = getUserProfile
export const getUserChannelsAPI = getUserChannels
export const getArticlesAPI = getArticles
export const getAllChannelsAPI = getAllChannels
export const addUserChannelAPI = addUserChannel
export const deleteUserChannelAPI = deleteUserChannel
export const getSuggestionsAPI = getSuggestions
export const getSearchAPI = getSearch

export const getArticleByIdAPI = getArticleById
export const addFollowAPI = addFollow
export const deleteFollowAPI = deleteFollow
export const addCollectAPI = addCollect
export const deleteCollectAPI = deleteCollect
export const addLikeAPI = addLike
export const deleteLikeAPI = deleteLike
export const getCommentsAPI = getComments
export const addCommentLikeAPI = addCommentLike
export const deleteCommentLikeAPI = deleteCommentLike
export const addCommentAPI = addComment
export const updateUserAvatarAPI = updateUserAvatar
export const updateUserAPI = updateUser
